// Log.h: interface for the CLog class.
//
//////////////////////////////////////////////////////////////////////


#if !defined(AFX_LOG_H__2007E187_5504_44AF_89E7_4C692B39E3D8__INCLUDED_)
#define AFX_LOG_H__2007E187_5504_44AF_89E7_4C692B39E3D8__INCLUDED_

#include <flogger.h>

_LIT(KLogDir, "qq");
_LIT(KLogFile, "log.txt");

//#ifdef __LOG_DEBUG__

#ifndef LOG
#define LOG(S) \
{ \
	_LIT(__DEBUG_LOG_BUF, S); \
	RFileLogger::Write(KLogDir, KLogFile, EFileLoggingModeAppend, __DEBUG_LOG_BUF); \
}
#endif

#ifndef LOG_FORMAT
#define LOG_FORMAT(S, params) \
{ \
	_LIT(__KTMPSTRINT, S); \
	TBuf<256> __DEBUG_LOG_BUF; \
	__DEBUG_LOG_BUF.Format(__KTMPSTRINT, params); \
	RFileLogger::Write(KLogDir, KLogFile, EFileLoggingModeAppend, __DEBUG_LOG_BUF); \
}
#endif

//#else
//
//#ifndef LOG
//#define LOG(S)
//#endif
//#ifndef LOG_FORMAT
//#define LOG_FORMAT(S, params)
//#endif
//
//#endif

#endif // !defined(AFX_LOG_H__2007E187_5504_44AF_89E7_4C692B39E3D8__INCLUDED_)
